P_("Popup"),
P_("The dropdown menu."),
GTK_TYPE_MENU,
- G_PARAM_READWRITE));
+ GTK_PARAM_READWRITE));
/**
* GtkMenuButton:menu-model:
P_("Menu model"),
P_("The model from which the popup is made."),
G_TYPE_MENU_MODEL,
- G_PARAM_READWRITE));
+ GTK_PARAM_READWRITE));
/**
* GtkMenuButton:align-widget:
*
P_("Align with"),
P_("The parent widget which the menu should align with."),
GTK_TYPE_CONTAINER,
- G_PARAM_READWRITE));
+ GTK_PARAM_READWRITE));
/**
* GtkMenuButton:direction:
*
P_("The direction the arrow should point."),
GTK_TYPE_ARROW_TYPE,
GTK_ARROW_DOWN,
- G_PARAM_READWRITE));
+ GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
+
/**
* GtkMenuButton:use-popover:
*
P_("Use a popover"),
P_("Use a popover instead of a menu"),
TRUE,
- G_PARAM_READWRITE));
+ GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
/**
* GtkMenuButton:popover:
return;
priv->arrow_type = direction;
+ g_object_notify (G_OBJECT (menu_button), "direction");
/* Is it custom content? We don't change that */
child = gtk_bin_get_child (GTK_BIN (menu_button));
return;
set_arrow_type (GTK_IMAGE (child), priv->arrow_type);
-
update_popover_direction (menu_button);
}